package com.hq.shop.api.user.controller;

import com.hq.shop.api.user.model.UserEntity;
import com.hq.shop.api.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName UserController
 * @Description 用户控制器
 * @Author huangzl
 * @Date 2018/10/30 19:45
 * @Version 1.0
 **/
@RestController
public class UserController {

    @Autowired
    private UserService userService;

    @RequestMapping("/user/info")
    public UserEntity getUserInfo(){
        return userService.getUserInfo();
    }
}